﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:IGL_Talk_Win8.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Model="using:IGL_Talk_Win8.Model"
    x:Class="IGL_Talk_Win8.Controls.LanguageSelection"
    mc:Ignorable="d"
    Height="40" Width="150" Margin="100,30,25,30">

    <Grid>
        <ComboBox x:Name="comboLanguageSelection" SelectedValuePath="Code" SelectionChanged="comboLanguageSelection_SelectionChanged">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Path=Name}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
            <Model:Language CultureInfo="pl-PL" Code="pl" Name="Polski" />
            <Model:Language CultureInfo="en-US" Code="en" Name="English" />
        </ComboBox>
    </Grid>
</UserControl>